package com.xiaolei.lib.annotation.factory;

import com.xiaolei.lib.core.ITranslator;

/**
 * 解释器的工厂类，解释器里不用为自己的单例模式考虑那么多
 * @author xiaolei
 */
public class TranslatorFactory
{
	public static <T extends ITranslator> T getTranslator(Class<T> class1)
	{
		return BeanFactory.getInstance(class1);
	}
}
